package com.gla.entity;

public class Commodity {
    private int id;
    private String name;
    private float price;
    private int number;
    private int p_o_u;
    private int type_id;
    private int shop_id;
    private String details;
    private String introduction;
    private String photo;
    private int isdel;

    public Commodity() {
    }

    public Commodity(int id, String name, float price, int number, int p_o_u, int type_id, int shop_id, String details, String introduction, String photo, int isdel) {
        this.id = id;
        this.name = name;
        this.price = price;
        this.number = number;
        this.p_o_u = p_o_u;
        this.type_id = type_id;
        this.shop_id = shop_id;
        this.details = details;
        this.introduction = introduction;
        this.photo = photo;
        this.isdel = isdel;
    }

    @Override
    public String toString() {
        return "Commodity{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", price=" + price +
                ", number=" + number +
                ", p_o_u=" + p_o_u +
                ", type_id=" + type_id +
                ", shop_id=" + shop_id +
                ", details='" + details + '\'' +
                ", introduction='" + introduction + '\'' +
                ", photo='" + photo + '\'' +
                ", isdel=" + isdel +
                '}';
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public float getPrice() {
        return price;
    }

    public void setPrice(float price) {
        this.price = price;
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    public int getP_o_u() {
        return p_o_u;
    }

    public void setP_o_u(int p_o_u) {
        this.p_o_u = p_o_u;
    }

    public int getType_id() {
        return type_id;
    }

    public void setType_id(int type_id) {
        this.type_id = type_id;
    }

    public int getShop_id() {
        return shop_id;
    }

    public void setShop_id(int shop_id) {
        this.shop_id = shop_id;
    }

    public String getDetails() {
        return details;
    }

    public void setDetails(String details) {
        this.details = details;
    }

    public String getIntroduction() {
        return introduction;
    }

    public void setIntroduction(String introduction) {
        this.introduction = introduction;
    }

    public String getPhoto() {
        return photo;
    }

    public void setPhoto(String photo) {
        this.photo = photo;
    }

    public int getIsdel() {
        return isdel;
    }

    public void setIsdel(int isdel) {
        this.isdel = isdel;
    }
}
